package com.hyl.reflection;

import javax.servlet.http.HttpServletRequest;

/**
 * SimpleBeanConvert
 *
 * @author hyl
 * @date 2025-06-06
 */
public class SimpleBeanConvert {

    public static Object convertSimpleBean(String classinfo , HttpServletRequest request) {
        Object obj = null;
        try {
            Class clazz = Class.forName(classinfo); //Student

            //遍历字段==》查看request中是否有该字段
            //通过Class创建对象
            //通过反射调用setter方法

        } catch (ClassNotFoundException e) {
            throw new RuntimeException(e);
        }
        return obj;
    }
}
